Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | var sjcl = require('sjcl'); |
||
10 | var pbkdf2Sha512 = function(pw, salt, iterations, keySizeBytes) { |
||
11 | salt = sjcl.codec.hex.toBits(salt.toString('hex')); |
||
12 | var data = sjcl.codec.hex.toBits(pw.toString('hex')); |
||
13 | return new Buffer(sjcl.codec.hex.fromBits(sjcl.misc.pbkdf2(data, salt, iterations, keySizeBytes * 8, hmacSha512)), 'hex'); |
||
|
|||
14 | }; |
||
15 | |||
19 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.